<extend name="Public:base"/>


<block name="left">
    <ul>
        <li><a href="{:U('Slink/add')}">添加超链</a></li>
        <li><a href="{:U('Slink/lst')}">超链列表</a></li>
        
    </ul>
</block>

<block name="right">



<html>
<head>
    <meta charset="UTF-8">
    <title>添加超链——后台管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC;?>/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC;?>/css/main.css"/>
    <script type="text/javascript" src="<?php echo ADMIN_PUC;?>/js/libs/modernizr.min.js"></script>
    <script type="text/javascript" src="<?php echo ADMIN_PUC;?>/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<include file="Common/top" /> 
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <include file="Common/left" /> 
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="__MODULE__/cate/lst">超链管理</a><span class="crumb-step">&gt;</span><span>新增超链</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>关键词所属分类</th>
                                <td>
                                    <select name="cateid" id="catid" class="required">
                                        <volist name="cates" id="vo">
                                        <option value="{$vo.id}"><if condition="$vo['pid'] neq 0">|</if><?php echo str_repeat('-', $vo['level']*8);?>{$vo.name}</option>
                                        </volist>
                                    </select>
                                </td>
                            </tr>
                <!--             <tr>
                                <th><i class="require-red">*</i>所属关键词：</th>
                                    <td>
                                        <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                    </td>
                            </tr> -->
                            <tr>
                                <th><i class="require-red">*</i>超链标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                </td>
                            </tr>
                             <tr>
                                <th>超链地址：</th>
                                <td>
                                    <input class="common-text required" id="title" name="author" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>网站类型：</th>
                                <td>
                                    <input class="common-text required" id="title" name="author" size="50" value="" type="text">
                                </td>
                            </tr>

                            <tr>
                                <th>超链作者：</th>
                                <td>
                                    <input class="common-text required" id="title" name="author" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>标签：</th>
                                <td><input class="common-text" name="keywords" size="50" value="" type="text"></td>
                            </tr>
                            <tr>
                                <th>描述：</th>
                                <td><textarea name="des" class="common-textarea" cols="55" rows="5"></textarea></td>
                            </tr>
                            <tr>
                                <th>是否推荐：</th>
                                <td>
                                <input class="common-text" name="rem" size="50" value="1"  type="checkbox">推荐
                                </td>
                            </tr>
                            <tr>
                                <th>超链类型：</th>
                                <td>
                                <div id="atype">
                                <input class="common-text" name="atype" size="50" value="0" checked="checked"  type="radio">列表
                                <input class="common-text" name="atype" size="50" value="1"  type="radio">相关搜索
                                <input class="common-text" name="atype" size="50" value="2"  type="radio">灵感搜索
                                </div>
                                </td>
                            </tr>
                            <tr class="btype">
                                <th>列表附加字段：</th>
                                <td>
                                暂无附加字段
                                </td>
                            </tr>
                            <tr class="btype">
                                <th>相关搜索：</th>
                                <td>
                                <input class="common-text" name="rizu" size="50" value=""  type="text">
                                </td>
                            </tr>
                            <tr class="btype">
                                <th>灵感搜索：</th>
                                <td>
                                <input class="common-text" name="num" size="50" value=""  type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>缩略图：</th>
                                <td><input name="pic" id="" type="file"><!--<input type="submit" onclick="submitForm('/jscss/admin/design/upload')" value="上传图片"/>--></td>
                            </tr>
                            <tr>
                                <th>内容：</th>
                                <td><textarea name="content" class="common-textarea" id="content" cols="30" style="width:50%;" rows="6"></textarea></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:900,initialFrameHeight:400,});
    $(".btype").hide();
    $(".btype").eq(0).show();
    $("#atype input").click(function(){
        var i=$(this).index();
        $(".btype").hide();
        $(".btype").eq(i).show();
    });

</script>


</block>
